package com.netty.esc.entity.send;

import com.alibaba.fastjson.JSONObject;
import com.netty.esc.entity.model.BaseDTO;
import lombok.Data;

/**
 * @Author: zhaoyang
 * @Data: 2022/5/25 14:13
 * @Description 协议回调
 */
@Data
public class ProtocolACKDTO extends BaseDTO {

    /**
     * 成功
     * */
    public static final String SUCCESS ="200";

    /**
     * 失败
     * */
    public static final String ERROR = "400";

    /**
     * 状态码
     * */
    private String code;

    /**
     * 回调信息
     * */
    private String msg;

    public ProtocolACKDTO(JSONObject jsonObject){
        String protocolType = jsonObject.getString("protocolType");
        String msgId = jsonObject.getString("msgId");
//        String noticeTalker= jsonObject.getString("noticeTalker");

        this.setProtocolType(protocolType);
        this.setMsgId(msgId);
//        this.setNoticeTalker(noticeTalker);
    }

    public ProtocolACKDTO(){}




}
